﻿Option Strict On
Option Explicit On

Partial Class AccountNotActive
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click
        'Log the user out and return them to the Outer home page
        Response.Redirect("~/default.aspx")
    End Sub

    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        'Now do the following
        '1) Send the user to a new AccountNotActive Page
        '2) Display a message saying that the account is not active
        '3) Log the user out
        '4) go to outer home page
        'Sign out the user before showing them the message in case they don't click the button below
        FormsAuthentication.SignOut()
    End Sub
End Class
